<script lang="ts" setup>
import { useStore } from '@/store'
const { home } = useStore()
home.homeBanner()
</script>
<template>
  <div class="home-banner">
    <!-- 轮播图 -->
    <XtxCarousel :bannerList="home.bannerList"></XtxCarousel>
  </div>
</template>

<style scoped lang="less">
// scoped:只能用于当前组件和子组件最外层
// vue2:  ::v-deep  >>>   /deep/
// vue3  :deep(需要穿透的选择器)
.home-banner {
  width: 1240px;
  height: 500px;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 98;
  background-color: pink;
  :deep(.carousel-btn.prev) {
    //   ::v-deep .carousel-btn.prev {
    left: 271px;
  }
  :deep(.carousel-indicator) {
    left: 128px;
  }
}
</style>
